package com.tj.jinzao.activity;


import android.content.Context;
import android.content.Intent;
import android.support.v4.app.Fragment;

import com.tj.jinzao.R;
import com.tj.jinzao.base.BaseActivity;
import com.tj.jinzao.fragment.FamilyListFragment;

/**
 * 家庭成员资料页面
 * Created by wjy on 2019/1/5.
 */
public class FamilyMemberInfoActivity extends BaseActivity {

    private int mType = 0;

    public static void start(Context context, int type) {
        context.startActivity(new Intent(context, FamilyMemberInfoActivity.class)
                .putExtra("type", type));
    }

    @Override
    public int getLayoutResource() {
        return R.layout.base_activity_fragment_layout;
    }

    @Override
    protected void setupView() {
        super.setupView();
        mType = getIntent().getIntExtra("type", 0);
        if(mType == 1)setTitleText("成员报告");
    }

    @Override
    protected Fragment createFragment() {

        return FamilyListFragment.newInstance(mType);
    }

    @Override
    protected int getLeftButtonResId() {
        return R.mipmap.ic_back;
    }

}
